﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Test_PLX.Models;
using Test_PLX.Repository;

namespace Test_PLX.Domain
{
    public class LogDomain
    {
        public List<LogModel> GetLogList(int PersonId)
        {
            return new LogRepository().GetLogList(PersonId);
        }
        public bool AddLog(LogModel log)
        {
            return new LogRepository().AddLog(log);
        }
        public bool AddPerson(PersonModel person)
        {
            return new LogRepository().AddPerson(person);
        }
        public bool AddFood(FoodModel food)
        {
            return new LogRepository().AddFood(food);
        }
        public bool DeleteLog(int logId)
        {
            return new LogRepository().DeleteLog(logId);
        }
        public bool ModifyLog(LogModel log)
        {
            return new LogRepository().ModifyLog(log);
        }
    }
}